//引入express框架
const express = require('express');
//创建网站服务器
const app = express();

//导入路由模块
const home = require('./route/home.js');
const admin = require('./route/admin.js');

//路径匹配
app.use('/home',home);
app.use('/admin',admin);

//端口监听
app.listen(3000);